
@extends('home.public.master')
@section('content')
    <div class="main-container container">
        <ul class="breadcrumb">
            <li><a href="/"><i class="fa fa-home"></i></a></li>
            <li><a href="javascript:;">个人中心</a></li>
            <li><a href="Javascript:;">我的订单</a></li>
        </ul>
        <div class="row">
            <!--Middle Part Start-->
            <div id="content" class="col-sm-9">
                <h1 class=""> 您好:</h1>
                <h3 style="color: orangered;" class="title">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                    &nbsp;{{auth()->user()->name}}</h3>
                <div id="content" class="col-sm-12">
                    <h2 class="title" style="margin-top: 20px;margin-bottom: 20px;">订单列表</h2>
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover">
                            <thead>
                            <tr>
                                <td class="text-center">图片</td>
                                <td class="text-left">商品名称</td>
                                <td class="text-center">订单编号</td>
                                <td class="text-center">数量</td>
                                <td class="text-center">状态</td>
                                <td class="text-center">生成时间</td>
                                <td class="text-right">总计</td>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($order as $value)
                            <tr>
                                <td class="text-center">
                                    <a href="product.html"><img width="85" class="img-thumbnail" title="Aspire Ultrabook Laptop" alt="Aspire Ultrabook Laptop" src="{{$value['get_goods'][0]['pictures'][0]}}">
                                    </a>
                                </td>
                                <td class="text-left"><a href="product.html">{{$value['get_goods'][0]['name']}}</a>
                                </td>
                                <td class="text-center">{{$value['get_orders']['orderNumber']}}</td>
                                <td class="text-center">{{$value['number']}}</td>
                                <td class="text-center">{{$value['get_orders']['status']?'已完成':'未完成'}}</td>
                                <td class="text-center">{{$value['created_at']}}</td>
                                <td class="text-right">¥{{$value['number']*$value['get_goods'][0]['price']}}元</td>
                                </td>
                            </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
            @include('home.public.left')
        </div>
    </div>
@endsection

















